package com.emep.changzhi.analyse.entity.basics;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * @author Wangcc
 * @version V1.0
 * @Description: 排放标准细则
 * @date 2018/2/26 15:38
 */
@Data
@Table(name = "sys_emission_standard_fine_info")
@Entity
public class SysEmissionStandardFineInfo  implements Serializable{

    private static final long serialVersionUID = -4588310095417137401L;

    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String id;

    @ManyToOne
    @JoinColumn(name = "standard_total_id",columnDefinition="varchar(100) COMMENT '外键关联总则主键'" )
    private SysEmissionStandardTotalInfo standardTotalInfo;

    @Column(name = "monitor_factor_id",columnDefinition="varchar(100) COMMENT '外键关联污染物主键'" )
    private String monitorFactorId;

    @Column(name = "max_value",columnDefinition="varchar(100) COMMENT '最大值'" )
    private String maxValue;

    @Column(name = "min_value",columnDefinition="varchar(100) COMMENT '最小值'" )
    private String minValue;

    @Column(name = "max_operator",columnDefinition="varchar(100) COMMENT '最大值运算符'" )
    private String maxOperator;

    @Column(name = "min_operator",columnDefinition="varchar(100) COMMENT '最小值运算符'" )
    private String minOperator;

    @Column(name = "standard_unit",columnDefinition="varchar(100) COMMENT '计量单位'" )
    private String standardUnit;

    @Column(name = "comment",columnDefinition="varchar(100) COMMENT '备注'" )
    private String comment;

    @Column(name = "create_date",columnDefinition="varchar(100) COMMENT '信息录入时间'" )
    private String createDate = String.valueOf(System.currentTimeMillis());

    @Column(name = "is_delete",columnDefinition="varchar(100) COMMENT '是否删除'" )
    private String isDelete = "0";

    @OneToMany(mappedBy = "standardFineInfo")
    private Set<SysFactorInfo> factorInfoList = new HashSet<SysFactorInfo>();



}
